package ferp.android.services;

import android.os.DeadObjectException;

/**
 * User: olegs
 * Date: 08/05/2014 14:23
 */
public class ServiceException extends Exception
{
  public ServiceException(Throwable t)
  {
    super(t);
  }

  public ServiceException(String message)
  {
    super(message);
  }

  public ServiceException(String message, long status)
  {
    super(message);

    this.status = status;
  }

  public boolean isDeadObject() {return getCause() instanceof DeadObjectException;}
  public long status() {return status;}

  private long status = ResolverService2.ASSERTION_ERROR;
}
